<template>
  <div>
    <el-row>
      <el-col :span="24" class="main-title main-v-center">服务器信息</el-col>
    </el-row>
    <el-row>
      <el-col :span="24" class="main-h-center">
        <el-card style="width:600px;margin-top:50px;" shadow="never">
          <!-- <div v-for="item of infoArr">
                        {{item}}
          </div>-->
          <el-row :gutter="10" v-for="item of list">
            <el-col :span="6">
              <span class="head-text">{{item.key}}</span>
            </el-col>
            <el-col :span="18">{{item.value}}</el-col>
          </el-row>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import { mapGetters } from "vuex";
export default {
  data() {
    return {
      list: []
    };
  },
  created() {
    this.$http.post("/server/info", {}).then(res => {
      this.list = res.data;
    });
  }
};
</script>
<style scoped>
.head-text {
  float: left;
  color: #99a9bf;
}
</style>


